package com.xiaozhen.common.core.domain.system;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaozhen.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/8/17 10:06
 * @description:
 */
@Data
@TableName("sys_role")
@ApiModel(description = "系统角色表")
public class SysRole extends BaseEntity {

    @TableId
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "角色权限标识")
    private String roleKey;

    @ApiModelProperty(value = "角色描述")
    private String roleDesc;

    @ApiModelProperty(value = "角色状态（0正常 1停用）")
    private String status;

    @TableLogic
    @ApiModelProperty(value = "删除标识（0-正常,1-删除）")
    private Integer delFlag;

    @ApiModelProperty(value = "菜单组")
    @TableField(exist = false)
    private Long[] menuIds;
}
